package com.atguigu.springboot_1.service;

import com.atguigu.springboot_1.mapper.UserMapper;
import com.atguigu.springboot_1.pojo.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{
    @Autowired
    private UserMapper userMapper;

    @Override
    public IPage<User> findMyPage(IPage<User> page, int age, String sex) {
        return userMapper.findMyPage(page,age,sex);

    }
}
